#version 460
#define GLSLIFY 1

//顶点输入
layout(location = 0) in vec4	vertex_type;
//layout(location = 1) in float	inDensity;

//输出到几何着色器数据
layout(location = 0) out vec4 vColor;
out gl_PerVertex {
	vec4 gl_Position;
	float gl_PointSize;
};

layout(location = 3) out VS_GS_VERTEX {
	uint	v_InstanceIndex;
	float	v_VType;
}vertex_in;

void main(void){
	vertex_in.v_VType = vertex_type.w;
	vertex_in.v_InstanceIndex = gl_InstanceIndex;
	
	gl_Position.xyz = vertex_type.xyz;
	gl_Position.w = 1;

	gl_PointSize = 3.0;
	vColor = vec4(1,1,1,1);
	
}

